#ifndef __MASS_MAL_H
#define __MASS_MAL_H

#include "global.h"

#define MAL_OK   0
#define MAL_FAIL 1
#define MAX_LUN  1

uint16_t MAL_Init (uint8_t lun);
uint16_t MAL_GetStatus (uint8_t lun);
uint16_t MAL_Read(uint8_t lun, u32 Memory_Offset, u32 *Readbuff, uint16_t Transfer_Length);
uint16_t MAL_Write(uint8_t lun, u32 Memory_Offset, u32 *Writebuff, uint16_t Transfer_Length);

#endif /* __MASS_MAL_H */
